/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2022-12-22 22:21:11
 */
import request from "../../utils/request";

//获取歌单详情
export const getSongListDeatail = (id) => request({
    url: '/playlist/detail',
    method: 'GET',
    params: {
        id,
        timestamp: Date.parse(new Date())
    }
})

//获取每首歌的详细信息
export const getEverySongDetail = (ids) => request({
    url: "/song/detail",
    method: 'GET',
    params: {
        ids  //传入音乐 id(支持多个 id, 用 , 隔开), 可获得歌曲详情(dt为歌曲时长)
    }
})


//获取歌单收藏者
export const getSongListSubscribers = (id, offset) => request({
    url: '/playlist/subscribers',
    method: 'GET',
    params: {
        id,
        offset,
        limit: 48
    }
})

//收藏|取消收藏歌单  t 类型,1:收藏,2:取消收藏
export const subSongList = (t, id) => request({
    url: '/playlist/subscribe',
    method: 'GET',
    params: {
        t,
        id
    }
})